package com.ilancuo.thinkinjava.chapter_18;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;

public class FormattedMemoryInput {
    public static void main(String[] args) {
        try {
            DataInputStream in = new DataInputStream(new ByteArrayInputStream(BufferedInputFile.read("C:\\Users\\Administrator\\Desktop\\test.txt").getBytes()));
            while (true)
                System.out.print((char) in.readByte());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
